public class Dormitory implements  IVisitor {


    @Override
    public String visit(Student student) {
        return  "学生："+student.getStudentName()+"\t安排住宿到:\tD4 101";
    }

    @Override
    public String visit(Teacher teacher) {
        return "教师："+teacher.getTeacherName()+"\t安排住宿到：\tK6 202";
    }

    @Override
    public String visit(Professor professor) {
        return "教授："+professor.getProfessorName()+"\t安排住宿到：\tK1 303";
    }
}
